package com.chen.vo;

/**
 * @Author:chenao
 * @DATE:2022/3/10 22:51
 */
public enum ErrorCode {

    PARAMS_ERROR(10001, "参数有误"),
    ACCOUNT_PWD_NOT_EXIST(10002, "用户名或密码错误"),
    TOKEN_ERROR(10003, "token不合法"),
    PERMISSION_ERROR(10004, "无法删除超级管理员"),
    ACCOUNT_EXIST(10005, "账号已存在"),
    PWD_ERROR(10006, "密码错误"),
    USER_BAN(10007, "该账号被禁用"),
    NO_PERMISSION(70001, "无访问权限"),
    SESSION_TIME_OUT(90001, "会话超时"),
    NO_LOGIN(90002, "未登录"),;

    private int code;
    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

